<div class="item" id="unpaid-bill-<%= pay_bill.id %>">
  <div id="options">
    <%= image_tag "icons/#{pay_bill.due_status}.png" %>
    <%= link_to_remote (image_tag 'icons/pay.png'), :url => { :action => 'close_pay', :id => pay_bill.id } %>
  </div>
  <div id="name"><%= pay_bill.name %></div>
  <div id="details"><%= pay_bill.details %> (<%= distance_of_time_in_words_to_now(pay_bill.due) %><%= ' ago' if pay_bill.due < Time.now.to_date %>)</div>
</div>

<div style="clear: both"></div>

<div id="pay-bill-<%= pay_bill.id %>" class="form"></div>
